<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>RKNPU DDK: Graph Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">RKNPU DDK
   &#160;<span id="projectnumber">1.3.0</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li><a href="classes.html"><span>Data&#160;Structure&#160;Index</span></a></li>
      <li><a href="functions.html"><span>Data&#160;Fields</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="namespacerk.html">rk</a></li><li class="navelem"><a class="el" href="namespacerk_1_1nn.html">nn</a></li><li class="navelem"><a class="el" href="classrk_1_1nn_1_1_graph.html">Graph</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#friends">Friends</a>  </div>
  <div class="headertitle">
<div class="title">Graph Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p><code>#include &lt;<a class="el" href="graph_8h_source.html">graph.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:afc5ef9d72cc2c509814200791eaef62c"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classrk_1_1nn_1_1_graph.html#afc5ef9d72cc2c509814200791eaef62c">Graph</a> ()</td></tr>
<tr class="separator:afc5ef9d72cc2c509814200791eaef62c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af5a604e5e9e4d68dbc10b312e59f678f"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classrk_1_1nn_1_1_graph.html#af5a604e5e9e4d68dbc10b312e59f678f">~Graph</a> ()</td></tr>
<tr class="separator:af5a604e5e9e4d68dbc10b312e59f678f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab750822d7f142a9530d105d6b63ed9e6"><td class="memItemLeft" align="right" valign="top">std::shared_ptr&lt; <a class="el" href="classrk_1_1nn_1_1_operator.html">Operator</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classrk_1_1nn_1_1_graph.html#ab750822d7f142a9530d105d6b63ed9e6">AddOperator</a> (<a class="el" href="namespacerk_1_1nn.html#a6a02b2d1d62293b20242e3dcfbdd0117">OperatorType</a> type, std::vector&lt; std::shared_ptr&lt; <a class="el" href="classrk_1_1nn_1_1_tensor.html">Tensor</a> &gt;&gt;inputs, std::vector&lt; std::shared_ptr&lt; <a class="el" href="classrk_1_1nn_1_1_tensor.html">Tensor</a> &gt;&gt;outputs, void *attrs, std::string name=&quot;&quot;)</td></tr>
<tr class="separator:ab750822d7f142a9530d105d6b63ed9e6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a47037f219da7fa7b34b24451ee917898"><td class="memItemLeft" align="right" valign="top">std::shared_ptr&lt; <a class="el" href="classrk_1_1nn_1_1_tensor.html">Tensor</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classrk_1_1nn_1_1_graph.html#a47037f219da7fa7b34b24451ee917898">CreateTensor</a> (std::shared_ptr&lt; <a class="el" href="structrk_1_1nn_1_1_tensor_attr.html">TensorAttr</a> &gt; attr, void *data)</td></tr>
<tr class="separator:a47037f219da7fa7b34b24451ee917898"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aacd7044be98d5a9eecbef6a844b2c829"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classrk_1_1nn_1_1_graph.html#aacd7044be98d5a9eecbef6a844b2c829">SetInputsOutputs</a> (std::vector&lt; std::shared_ptr&lt; <a class="el" href="classrk_1_1nn_1_1_tensor.html">Tensor</a> &gt;&gt; input_tensors, std::vector&lt; std::shared_ptr&lt; <a class="el" href="classrk_1_1nn_1_1_tensor.html">Tensor</a> &gt;&gt; output_tensors)</td></tr>
<tr class="separator:aacd7044be98d5a9eecbef6a844b2c829"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a99030fda5c18514c1c07220e6b726fb5"><td class="memItemLeft" align="right" valign="top">std::vector&lt; std::shared_ptr&lt; <a class="el" href="classrk_1_1nn_1_1_tensor.html">Tensor</a> &gt; &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classrk_1_1nn_1_1_graph.html#a99030fda5c18514c1c07220e6b726fb5">GetInputs</a> ()</td></tr>
<tr class="separator:a99030fda5c18514c1c07220e6b726fb5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acf0264ec0bb37c6eda9b584bd9820177"><td class="memItemLeft" align="right" valign="top">std::vector&lt; std::shared_ptr&lt; <a class="el" href="classrk_1_1nn_1_1_tensor.html">Tensor</a> &gt; &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classrk_1_1nn_1_1_graph.html#acf0264ec0bb37c6eda9b584bd9820177">GetOutputs</a> ()</td></tr>
<tr class="separator:acf0264ec0bb37c6eda9b584bd9820177"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0944cb9866a1c6409410e0fb75fe4b62"><td class="memItemLeft" align="right" valign="top">std::vector&lt; std::shared_ptr&lt; <a class="el" href="structrk_1_1nn_1_1_tensor_attr.html">TensorAttr</a> &gt; &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classrk_1_1nn_1_1_graph.html#a0944cb9866a1c6409410e0fb75fe4b62">GetInputTensorsAttr</a> ()</td></tr>
<tr class="separator:a0944cb9866a1c6409410e0fb75fe4b62"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9ee83c28fa54bc3c7222da91a4b90a2e"><td class="memItemLeft" align="right" valign="top">std::vector&lt; std::shared_ptr&lt; <a class="el" href="structrk_1_1nn_1_1_tensor_attr.html">TensorAttr</a> &gt; &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classrk_1_1nn_1_1_graph.html#a9ee83c28fa54bc3c7222da91a4b90a2e">GetOutputTensorsAttr</a> ()</td></tr>
<tr class="separator:a9ee83c28fa54bc3c7222da91a4b90a2e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1cbb0a36b1567595284195ce8c4c2894"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classrk_1_1nn_1_1_graph.html#a1cbb0a36b1567595284195ce8c4c2894">EnableCreateCache</a> (std::string cache_path)</td></tr>
<tr class="separator:a1cbb0a36b1567595284195ce8c4c2894"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a410a3c082f3d0858b398c6cc9f8e6a0b"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classrk_1_1nn_1_1_graph.html#a410a3c082f3d0858b398c6cc9f8e6a0b">LoadCache</a> (std::string cache_path)</td></tr>
<tr class="separator:a410a3c082f3d0858b398c6cc9f8e6a0b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad00c21b795bad2e356b26230a0cb6589"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classrk_1_1nn_1_1_graph.html#ad00c21b795bad2e356b26230a0cb6589">LoadCache</a> (const char *cache_buf, size_t size)</td></tr>
<tr class="separator:ad00c21b795bad2e356b26230a0cb6589"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="friends"></a>
Friends</h2></td></tr>
<tr class="memitem:ac056aa11272ec5d039eb9be784d40877"><td class="memItemLeft" align="right" valign="top">class&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classrk_1_1nn_1_1_graph.html#ac056aa11272ec5d039eb9be784d40877">Exection</a></td></tr>
<tr class="separator:ac056aa11272ec5d039eb9be784d40877"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p><a class="el" href="classrk_1_1nn_1_1_graph.html">Graph</a> is used to create and save tensor and <a class="el" href="classrk_1_1nn_1_1_operator.html">Operator</a>, and the connection relationship of these Operators. It is mainly used to save model information and is not actually created on the NPU. </p>

<p>Definition at line <a class="el" href="graph_8h_source.html#l00029">29</a> of file <a class="el" href="graph_8h_source.html">graph.h</a>.</p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="afc5ef9d72cc2c509814200791eaef62c"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classrk_1_1nn_1_1_graph.html">Graph</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="af5a604e5e9e4d68dbc10b312e59f678f"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">~<a class="el" href="classrk_1_1nn_1_1_graph.html">Graph</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="ab750822d7f142a9530d105d6b63ed9e6"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::shared_ptr&lt;<a class="el" href="classrk_1_1nn_1_1_operator.html">Operator</a>&gt; AddOperator </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="namespacerk_1_1nn.html#a6a02b2d1d62293b20242e3dcfbdd0117">OperatorType</a>&#160;</td>
          <td class="paramname"><em>type</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::vector&lt; std::shared_ptr&lt; <a class="el" href="classrk_1_1nn_1_1_tensor.html">Tensor</a> &gt;&gt;&#160;</td>
          <td class="paramname"><em>inputs</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::vector&lt; std::shared_ptr&lt; <a class="el" href="classrk_1_1nn_1_1_tensor.html">Tensor</a> &gt;&gt;&#160;</td>
          <td class="paramname"><em>outputs</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>attrs</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::string&#160;</td>
          <td class="paramname"><em>name</em> = <code>&quot;&quot;</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Add an <a class="el" href="classrk_1_1nn_1_1_operator.html">Operator</a>.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">type</td><td>[in] <a class="el" href="classrk_1_1nn_1_1_operator.html">Operator</a> Type </td></tr>
    <tr><td class="paramname">inputs</td><td>[in] input tensors </td></tr>
    <tr><td class="paramname">outputs</td><td>[in] outputs tensors </td></tr>
    <tr><td class="paramname">attrs</td><td>[in] attributes of <a class="el" href="classrk_1_1nn_1_1_operator.html">Operator</a> </td></tr>
    <tr><td class="paramname">name</td><td>[in] <a class="el" href="classrk_1_1nn_1_1_operator.html">Operator</a>'s name </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The corresponding <a class="el" href="classrk_1_1nn_1_1_operator.html">Operator</a> is returned on success, otherwise it returns nullptr </dd></dl>

</div>
</div>
<a class="anchor" id="a47037f219da7fa7b34b24451ee917898"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::shared_ptr&lt;<a class="el" href="classrk_1_1nn_1_1_tensor.html">Tensor</a>&gt; CreateTensor </td>
          <td>(</td>
          <td class="paramtype">std::shared_ptr&lt; <a class="el" href="structrk_1_1nn_1_1_tensor_attr.html">TensorAttr</a> &gt;&#160;</td>
          <td class="paramname"><em>attr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>data</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Create a tensor.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">attr</td><td>[in] attributes of tensor, cannot be empty. </td></tr>
    <tr><td class="paramname">data</td><td>[in] tensor data, can be empty. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the pointer of tensor </dd></dl>

</div>
</div>
<a class="anchor" id="a1cbb0a36b1567595284195ce8c4c2894"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int EnableCreateCache </td>
          <td>(</td>
          <td class="paramtype">std::string&#160;</td>
          <td class="paramname"><em>cache_path</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Enable cache mode, which cache compiled model to binary graph when first run.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">cache_path</td><td>[in] save graph cache full path </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>RK_SUCCESS when success </dd></dl>

</div>
</div>
<a class="anchor" id="a99030fda5c18514c1c07220e6b726fb5"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::vector&lt;std::shared_ptr&lt;<a class="el" href="classrk_1_1nn_1_1_tensor.html">Tensor</a>&gt; &gt; GetInputs </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Get the input tensor of graph</p>
<dl class="section return"><dt>Returns</dt><dd>input tensors set by <a class="el" href="classrk_1_1nn_1_1_graph.html#aacd7044be98d5a9eecbef6a844b2c829">SetInputsOutputs()</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a0944cb9866a1c6409410e0fb75fe4b62"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::vector&lt;std::shared_ptr&lt;<a class="el" href="structrk_1_1nn_1_1_tensor_attr.html">TensorAttr</a>&gt; &gt; GetInputTensorsAttr </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Get the attribute of input tensors</p>
<dl class="section return"><dt>Returns</dt><dd>input tensors attribute set by <a class="el" href="classrk_1_1nn_1_1_graph.html#aacd7044be98d5a9eecbef6a844b2c829">SetInputsOutputs()</a> </dd></dl>

</div>
</div>
<a class="anchor" id="acf0264ec0bb37c6eda9b584bd9820177"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::vector&lt;std::shared_ptr&lt;<a class="el" href="classrk_1_1nn_1_1_tensor.html">Tensor</a>&gt; &gt; GetOutputs </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Get the output tensor of graph</p>
<dl class="section return"><dt>Returns</dt><dd>output tensors set by <a class="el" href="classrk_1_1nn_1_1_graph.html#aacd7044be98d5a9eecbef6a844b2c829">SetInputsOutputs()</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a9ee83c28fa54bc3c7222da91a4b90a2e"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::vector&lt;std::shared_ptr&lt;<a class="el" href="structrk_1_1nn_1_1_tensor_attr.html">TensorAttr</a>&gt; &gt; GetOutputTensorsAttr </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Get the attribute of output tensors</p>
<dl class="section return"><dt>Returns</dt><dd>output tensors attribute set by <a class="el" href="classrk_1_1nn_1_1_graph.html#aacd7044be98d5a9eecbef6a844b2c829">SetInputsOutputs()</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a410a3c082f3d0858b398c6cc9f8e6a0b"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int LoadCache </td>
          <td>(</td>
          <td class="paramtype">std::string&#160;</td>
          <td class="paramname"><em>cache_path</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Load cached binary graph path.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">cache_path</td><td>[in] load graph cache full path </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>RK_SUCCESS when success </dd></dl>

</div>
</div>
<a class="anchor" id="ad00c21b795bad2e356b26230a0cb6589"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int LoadCache </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>cache_buf</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>size</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Load cached binary graph buffer. Note: cache buffer need release after Build</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">cache_path</td><td>[in] graph cache buffer </td></tr>
    <tr><td class="paramname">size</td><td>[in] graph cache buffer size </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>RK_SUCCESS when success </dd></dl>

</div>
</div>
<a class="anchor" id="aacd7044be98d5a9eecbef6a844b2c829"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int SetInputsOutputs </td>
          <td>(</td>
          <td class="paramtype">std::vector&lt; std::shared_ptr&lt; <a class="el" href="classrk_1_1nn_1_1_tensor.html">Tensor</a> &gt;&gt;&#160;</td>
          <td class="paramname"><em>input_tensors</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::vector&lt; std::shared_ptr&lt; <a class="el" href="classrk_1_1nn_1_1_tensor.html">Tensor</a> &gt;&gt;&#160;</td>
          <td class="paramname"><em>output_tensors</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Set the input and output tensor of the graph.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">input_tensors</td><td>[in] input tensors </td></tr>
    <tr><td class="paramname">output_tensors</td><td>[in] output tensors </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>RK_SUCCESS when success </dd></dl>

</div>
</div>
<h2 class="groupheader">Friends And Related Function Documentation</h2>
<a class="anchor" id="ac056aa11272ec5d039eb9be784d40877"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">friend class <a class="el" href="classrk_1_1nn_1_1_exection.html">Exection</a></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">friend</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="graph_8h_source.html#l00031">31</a> of file <a class="el" href="graph_8h_source.html">graph.h</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="graph_8h_source.html">graph.h</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.11
</small></address>
</body>
</html>
